﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Editor
{
    internal class ScenePresenter
    {
        private List<ISceneView> m_SceneViews = new List<ISceneView>();
        private SceneModel m_SceneModel = null;

        public ScenePresenter()
        {
        }

        public void NewScene()
        {
            m_SceneModel = new SceneModel();
        }

        public void AddView(ISceneView sceneView)
        {
            if (m_SceneViews.Contains(sceneView))
                return;

            m_SceneViews.Add(sceneView);
        }

        public void RemoveView(ISceneView sceneView)
        {
            if (!m_SceneViews.Contains(sceneView))
                return;

            m_SceneViews.Remove(sceneView);
        }
    }
}
